package com.xiashitech.authservice.dto;

import lombok.Data;

/**
 * 鉴权结果
 */
@Data
public class AuthResultDTO {
  /**
   * 是否鉴权通过
   */
  private boolean pass;

  public static AuthResultDTO pass() {
    AuthResultDTO authResult = new AuthResultDTO();
    authResult.pass = true;
    return authResult;
  }

  public static AuthResultDTO fail() {
    AuthResultDTO authResult = new AuthResultDTO();
    authResult.pass = false;
    return authResult;
  }

}